# coding:utf-8

from django import template

register = template.Library()


@register.filter
def null(value):
    if not value:
        return ""


@register.filter
def nullint(value):
    if not value:
        return "0"